package string;

public class SecondStringBuilder {
    public static void main(String[] args) {

        String string="战鹰战鹰你多大啦？";
        StringBuilder stringBuilder=new StringBuilder(string);
        stringBuilder.append("战鹰战鹰我三岁啦！");
        System.out.println(stringBuilder);

        stringBuilder.replace(9,16,"散石碎");
        System.out.println(stringBuilder);

        stringBuilder.delete(0,9);
        System.out.println(stringBuilder);

        stringBuilder.insert(4,"，光芒和激情已被岁月打磨");
        System.out.println(stringBuilder);

    }
}
